<div xmlns:h="http://java.sun.com/jsf/html"
     xmlns:c="http://java.sun.com/jstl/core"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:nxu="http://nuxeo.org/nxweb/util"
     xmlns:nxl="http://nuxeo.org/nxforms/layout"
     xmlns:a4j="http://richfaces.org/a4j">

  <a4j:outputPanel id="authorizedApplicationsPanel" layout="block" class="mainNoTabs">

    <nxu:set var="authorizedApplications" value="#{authorizedApplicationsActions.authorizedApplications}">


      <p><h:outputText value="#{messages['user.center.authorizedApplication.description']}" rendered="#{authorizedApplications.size gt 0}"/></p>
      <p class="emptyResult emptyResultBig"><h:outputText value="#{messages['user.center.noAuthorizedApplication']}" rendered="#{authorizedApplications.size le 0}" /></p>

  <h:form id="authorizedApplicationsForm">
  <table class="dataOutput">
    <tbody>
      <nxu:repeat var="application"
        value="#{authorizedApplicationsActions.authorizedApplications}" index="index">
        <c:if test="#{index % 2 == 0}">
          <c:set var="directoryEntryClass" value="dataRowOdd" />
        </c:if>
        <c:if test="#{index % 2 != 0}">
          <c:set var="directoryEntryClass" value="dataRowEven" />
        </c:if>
        <c:if test="#{index == 0}">
          <nxl:layout name="authorizedApplications" mode="list_and_header"
            value="#{application}" />
        </c:if>
        <c:if test="#{index != 0}">
          <nxl:layout name="authorizedApplications" mode="list" value="#{application}" />
        </c:if>
      </nxu:repeat>
    </tbody>
  </table>
  </h:form>


  </nxu:set>
  </a4j:outputPanel>


</div>
